PROJECTENGRAM

[HO] PROPOSITIONAL FUNCTIONS

Propositional Functions (Predicate Logic)

Tags: #◇Conceptual #◇Propositional Functions #◇Predicate Logic #◇CCDSTRU #◇M3


◇Key Definitions

Predicate Logic (Predicate Calculus): A more powerful type of logic that deals with predicates and quantifiers, allowing reasoning about object relationships. Predicates: Refers to the property that the subject of the statement can have (e.g., P(x)P(x) meaning "xx is greater than 5", where PP is the predicate). Propositional Function: Also known as an nn-ary predicate. A statement involving variables (e.g., P(x)P(x)). It is not a proposition until its variables are given specific values or it is quantified. Quantification: Expresses the extent to which a predicate is true over a range of elements. Universe of Discourse (Domain): Specifies all possible values of the variables. The meaning of the statement changes when the domain changes. Note: An implicit assumption is usually made that the universe of discourse is not empty. Bound vs Free Variables: When a variable is quantified, it is bound. If not, it is free. A propositional function becomes a proposition when all its variables are bound. Counterexample: An element in the domain for which P(x)P(x) is false in a universal quantification statement.

◇Theoretical Framework

Types of Quantification

  1. Universal Quantification (∀xP(x)\forall x P(x)):
    Read as: "For all x,P(x)x, P(x)".
    Meaning: P(x)P(x) is true for every element of xx in the domain.
    Equivalent to P(x1)∧P(x2)∧⋯∧P(xn)P(x_1) \land P(x_2) \land \dots \land P(x_n).

  2. Existential Quantification (∃xP(x)\exists x P(x)):
    Read as: "There exists x,P(x)x, P(x)".
    Meaning: P(x)P(x) is true for at least one element of xx in the domain.
    Equivalent to P(x1)∨P(x2)∨⋯∨P(xn)P(x_1) \lor P(x_2) \lor \dots \lor P(x_n).

[!tip] Empty Domains
If the universe of discourse is empty:

  • ∀xP(x)≡T\forall x P(x) \equiv T (vacuously true, since there is no element to make it false).
  • ∃xP(x)≡F\exists x P(x) \equiv F (since there is no element to make it true).

Logical Equivalences with Quantifiers

The quantifiers ∀\forall and ∃\exists have higher precedence over the logical operators from propositional calculus.
Distributing ∀\forall: ∀x(P(x)∧Q(x))≡∀xP(x)∧∀xQ(x)\forall x (P(x) \land Q(x)) \equiv \forall x P(x) \land \forall x Q(x) Distributing ∃\exists: ∃x(P(x)∨Q(x))≡∃xP(x)∨∃xQ(x)\exists x (P(x) \lor Q(x)) \equiv \exists x P(x) \lor \exists x Q(x) Note: ∀x(P(x)∨Q(x))\forall x (P(x) \lor Q(x)) cannot simply be distributed as ∀xP(x)∨∀xQ(x)\forall x P(x) \lor \forall x Q(x).

De Morgan's Laws for Quantifiers: ¬∀xP(x)≡∃x¬P(x)\neg \forall x P(x) \equiv \exists x \neg P(x) ¬∃xP(x)≡∀x¬P(x)\neg \exists x P(x) \equiv \forall x \neg P(x)

Nested Quantifiers

Two quantifiers are nested if one is within the scope of the other. The order of quantifiers is critical when mixing ∀\forall and ∃\exists. ∀x∀yP(x,y)≡∀y∀xP(x,y)\forall x \forall y P(x, y) \equiv \forall y \forall x P(x, y) ∃x∃yP(x,y)≡∃y∃xP(x,y)\exists x \exists y P(x, y) \equiv \exists y \exists x P(x, y) ∀x∃yP(x,y)\forall x \exists y P(x, y) is generally not equivalent to ∃y∀xP(x,y)\exists y \forall x P(x, y).

Translation Guide (English to Logic)

  1. Identify the predicate.
  2. Identify the universe of discourse.
  3. If using universal quantification (∀\forall), use implication (→\rightarrow). The subject is the premise.
    Example: All CS students studied. ∀x(C(x)→S(x))\forall x (C(x) \rightarrow S(x))
  4. If using existential quantification (∃\exists), use conjunction (∧\land). The subject is "anded" with the rest.
    Example: Some CS students studied. ∃x(C(x)∧S(x))\exists x (C(x) \land S(x))
  5. If referring to a specific subject (e.g. "Sarah"), do not use quantifiers, just use the value as the parameter: S(Sarah)S(\text{Sarah}).

◇References & Navigation